package expertSystem;

public class KnowledgeAssemblyLine 
{
	IMainKnowledgeSource Main;
	IKnowledgeBase KBase;
	//===========================================================================
	public KnowledgeAssemblyLine(IMainKnowledgeSource main,IKnowledgeBase base)
	{
		Main = main;
		KBase = base;
	}
	//===========================================================================
	public void Run()
	{
		IKnowledgeSource KSource = Main.NextKnowledgeSource(KBase);
		
		while (KSource!=null) 
		{
			System.out.println(KSource.Run(KBase));
			KSource = Main.NextKnowledgeSource(KBase);			
		}		
	}
	//===========================================================================
}
